-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[AMBARI-23093] Eliminated the org.apache.zookeeper:zookeeper dependency due to security concerns #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…y due to security concerns
|
@rlevas @zeroflag @dlysnichenko @adoroszlai Please review this PR; thanks! |
|
Refer to this link for build results (access rights to CI server needed): |
| </dependency> | ||
| <dependency> | ||
| <groupId>jline</groupId> | ||
| <artifactId>jline</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This no longer needs to be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove it from trunk version
ambari-server/pom.xml
Outdated
| <exclusions> | ||
| <exclusion> | ||
| <groupId>org.apache.curator</groupId> | ||
| <artifactId>curator-framework</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing seems wrong here.
ambari-server/pom.xml
Outdated
| <exclusions> | ||
| <exclusion> | ||
| <groupId>org.apache.zookeeper</groupId> | ||
| <artifactId>zookeeper</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing.
ambari-server/pom.xml
Outdated
| <exclusions> | ||
| <exclusion> | ||
| <groupId>org.apache.zookeeper</groupId> | ||
| <artifactId>zookeeper</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing.
|
Can someone please merge it? Thanks! |
|
Thanks @adoroszlai! |
|
Refer to this link for build results (access rights to CI server needed): |
…y due to security concerns (apache#493) (cherry picked from commit ccd31b6) Change-Id: I4cfa6952e737dedc44b840145f4971d396f19f18
What changes were proposed in this pull request?
Per CVE-2016-5017
Per CVE-2017-5637
So that I eliminated
org.apache.zookeper:zookeeperfromambari-server's build (it was never directly referenced; it's been a transitive dependency). However I needed to add a direct dependency ofjline:jline(we already have a managed version of this library inambari-project).How was this patch tested?
After updating the affected pom.xml files I've done the following:
1.) Checking Maven's dependency resolution:
2.) I executed
mvn clean testinambari-server:3.) In addition to this; I replaced the content of
usr/lib/ambari-serverin my vagrant host with the content fromambari-server/target/ambari-server-2.6.0.0.0-dist/usr/lib/ambari-server(where there was no zookeeper.jar) and restarted the server; logged in and did some actions (in this case I added created a cluster (HDFS only) via blueprints and then added Zookeeper); there were no any issues.